package de.tabuma.soap.entity.xsd;

import java.io.*;
import java.util.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;union&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="union",mappingType=SoapClassMapping.MappingType.XSD))
public class XsUnion implements Serializable {

    public XsUnion() {
        
        this.xsAnnotationId = new Long(0);
        this.xsSimpleType = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id1;
    public Long getId1() {
        return id1;
    }

    @Persistent
    @SoapAttribute
    protected String id;
    public String getId() {
        return id;
    }
    public void setId(String value) {
        this.id = value;
    }

    @Persistent
    @SoapAttribute
    protected List<String> memberTypes;
    public List<String> getMemberTypes() {
        if (memberTypes == null) {
            memberTypes = new ArrayList<String>();
        }
        return this.memberTypes;
    }
    public void setMemberTypes(List<String> memberTypes) {
        this.memberTypes = memberTypes;
    }


    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsAnnotation.class))
    protected Long xsAnnotationId;
    public Long getXsAnnotationId() {
        return xsAnnotationId;
    }
    public void setXsAnnotationId(Long xsAnnotationId) {
        this.xsAnnotationId = xsAnnotationId;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsSimpleType.class))
    protected List<Long> xsSimpleType;
    public List<Long> getXsSimpleType() {
        if(this.xsSimpleType==null) {
            this.xsSimpleType = new ArrayList<Long>();
        }
        return this.xsSimpleType;
    }

    public void setXsSimpleType(List<Long> xsSimpleType) {
        this.xsSimpleType = xsSimpleType;
    }
}
